package com.aspose.cells;

class zbdb extends zcj {
   zbdb(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   void a() {
      if (!this.e.m().a()) {
         com.aspose.cells.b.a.b.zm var1 = zbul.a(this.e.m());
         double var4 = (double)this.e.m().f();
         double var6 = 0.0D;
         switch(this.e.m().g()) {
         case 1:
         case 2:
            var6 = 0.0D;
            break;
         case 3:
            var6 = 0.0D;
            break;
         case 4:
            var6 = 0.0D;
            break;
         case 5:
            var6 = var4 * 0.6000000238418579D;
         }

         double var8 = 0.0D;
         switch(this.e.m().j()) {
         case 1:
         case 2:
            var8 = 0.0D;
            break;
         case 3:
            var8 = 0.0D;
            break;
         case 4:
            var8 = 0.0D;
            break;
         case 5:
            var8 = var4 * 0.6000000238418579D;
         }

         com.aspose.cells.b.a.b.zo var2;
         com.aspose.cells.b.a.b.zo var3;
         if (this.e.f() == 0.0F) {
            var2 = new com.aspose.cells.b.a.b.zo(this.e.F().f() + this.e.F().h() / 2.0F, this.e.F().g());
            var3 = new com.aspose.cells.b.a.b.zo(this.e.F().f() + this.e.F().h() / 2.0F, this.e.k().m());
            if (this.e.a != 1 && this.e.a != 4) {
               var3.b(var3.e() - (float)var6);
               var2.b(var2.e() + (float)var8);
               this.a.a(var1, var3, var2);
            } else {
               var2.b(var2.e() + (float)var6);
               var3.b(var3.e() - (float)var8);
               this.a.a(var1, var2, var3);
            }
         } else if (this.e.g() == 0.0F) {
            var2 = new com.aspose.cells.b.a.b.zo(this.e.h(), this.e.i() + this.e.F().i() / 2.0F);
            var3 = new com.aspose.cells.b.a.b.zo(this.e.h() + this.e.f(), this.e.i() + this.e.F().i() / 2.0F);
            if (this.e.a != 1 && this.e.a != 2) {
               var3.a(var3.d() - (float)var6);
               var2.a(var2.d() + (float)var8);
               this.a.a(var1, var3, var2);
            } else {
               var2.a(var2.d() + (float)var6);
               var3.a(var3.d() - (float)var8);
               this.a.a(var1, var2, var3);
            }
         } else {
            double var10 = Math.sqrt(Math.pow((double)this.e.f(), 2.0D) + Math.pow((double)this.e.g(), 2.0D));
            double var12 = (double)this.e.f() * var6 / var10;
            double var14 = (double)this.e.g() * var6 / var10;
            double var16 = (double)this.e.f() * var8 / var10;
            double var18 = (double)this.e.g() * var8 / var10;
            com.aspose.cells.b.a.b.zo var20 = new com.aspose.cells.b.a.b.zo(this.e.F().f(), this.e.F().g());
            com.aspose.cells.b.a.b.zo var21 = new com.aspose.cells.b.a.b.zo(this.e.F().f(), this.e.F().g() + this.e.g());
            com.aspose.cells.b.a.b.zo var22 = new com.aspose.cells.b.a.b.zo(this.e.F().f() + this.e.f(), this.e.F().g() + this.e.g());
            com.aspose.cells.b.a.b.zo var23 = new com.aspose.cells.b.a.b.zo(this.e.F().f() + this.e.f(), this.e.F().g());
            if (this.e.a == 1) {
               var20.a(var20.d() + (float)var12);
               var20.b(var20.e() + (float)var14);
               var22.a(var22.d() - (float)var16);
               var22.b(var22.e() - (float)var18);
               this.a.a(var1, var20, var22);
               this.e.i = var20;
               this.e.j = var22;
            } else if (this.e.a == 2) {
               var21.a(var21.d() + (float)var12);
               var21.b(var21.e() - (float)var14);
               var23.a(var23.d() - (float)var16);
               var23.b(var23.e() + (float)var18);
               this.a.a(var1, var21, var23);
               this.e.i = var21;
               this.e.j = var23;
            } else if (this.e.a == 3) {
               var22.a(var22.d() - (float)var12);
               var22.b(var22.e() - (float)var14);
               var20.a(var20.d() + (float)var16);
               var20.b(var20.e() + (float)var18);
               this.a.a(var1, var22, var20);
               this.e.i = var22;
               this.e.j = var20;
            } else {
               var23.a(var23.d() - (float)var12);
               var23.b(var23.e() + (float)var14);
               var21.a(var21.d() + (float)var16);
               var21.b(var21.e() - (float)var18);
               this.a.a(var1, var23, var21);
               this.e.i = var23;
               this.e.j = var21;
            }
         }
      }

   }
}
